import type { App } from "vue";
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.VITE_APP_BASE_URL),
  routes: [
    {
      name: "Home",
      path: "",
      component: () => import("@/views/Home.vue"),
    }
  ]
})

export function setupRouter(app: App) {
  app.use(router)
}
